import Mock from 'mockjs'
import '@/mock/extend'
const BASE_URL = process.env.VUE_APP_API_BASE_URL

const roleList = Mock.mock({
    'list|100': [{
        'id|+1': 1,
        'roleName':'@csentence(3, 5)',
        'roleDesc': '@csentence(10, 20)',
    }]
})
Mock.mock(`${BASE_URL}/roles`, 'post', () => {
    return roleList
})
